﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using LCA.Community.DAL.Model;

namespace LCA.Community.DAL.Test.ModelFactories
{
    public class HospitalsFactory
    {
        private int _count =  0;

        public HospitalsFactory()
        {

        }

        public Hospital CreateEntity()
        {
            var hospital = new Hospital(
                                String.Format("Hospital {0}", _count),
                                "http://www.hospital.com",
                                "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce accumsan neque nec diam viverra venenatis.",
                                "City",
                                "country"
                            );
            hospital.RowKey = Guid.NewGuid().ToString();

            _count++;

            return hospital;
        }

        public List<Hospital> CreateList(int count)
        {
            var list = new List<Hospital>();

            for (int i = 0; i < count; i++)
            {
                list.Add(CreateEntity());
                _count++;
            }

            return list;
        }
    }
}
